-- GOODS_BONUS_PT_RECHARGE

return function(user, args, multiBonus, price, currency)
    -- price 除上 100 才是真正的价格
    local rate = FormulaM.invoke("CURRENCY_TO_PT_RATE", currency);
    local pt = math.floor(price * rate / 100);

    -- 奖励 pt 点数
    local bonus = { 2, "pt", pt };
    BonusM.doBonus(bonus, "market_pt_buy");

    return {{ 2, "pt", pt },};
end